/* styles.css */
/* https://docs.obsidian.md/Reference/CSS+variables/CSS+variables */
:root {
  --sync-status-font-fize: 10px;
  --sync-status-placeholder-size: 20px;
  --file-nav-bar-height: 40px;
}

.file-icon {
  margin-right: 10px;
  cursor: pointer;
}

.file-size,
.file-modified {
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.sync-vault.file-nav-bar {
  display: flex;
  position: sticky;
  /* 使用sticky定位替代fixed，相对文档流且会在滚动时固定 */
  top: 5px;
  /* 距离视口顶部的距离 */
  height: var(--file-nav-bar-height);
  align-items: center;
  padding: 5px 10px;
  background-color: var(--color-base-20);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  white-space: nowrap;
  z-index: 1000;
  /* 新增宽度控制，适应父容器 */
  width: calc(100% - 20px);
  margin: 0 auto;
  /* 水平居中 */
}

.file-nav-bar-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.file-nav-bar-scroll::-webkit-scrollbar {
  display: none;
}

.sync-vault.file-nav-bar button {
  flex-shrink: 0;
}

.sync-vault.file-nav-bar .path-separator {
  flex-shrink: 0;
  display: inline-block;
  margin: 0 2px;
  font-size: 1.2em;
  color: #666;
  vertical-align: middle;
}

.sync-vault.file-nav-bar .ellipsis {
  flex-shrink: 0;
  margin: 0 8px;
  color: #6c757d;
}

.sync-vault.file-nav-bar .current-folder {
  font-weight: bold;
  color: var(--callout-default);
}

.sync-vault.file-list {
  padding: 10px;
  container-type: inline-size;
  container-name: file-browser;
}

.sync-vault.file-sync-status {
  color: #000000;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  font-size: var(--sync-status-font-fize);
  font-weight: bold;
  display: flex;
  /* inline-block; */
  text-align: center;
  /* position: relative; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* margin-right: 10px; */
  height: var(--sync-status-placeholder-size);
  /* 添加固定高度 */
  min-width: var(--sync-status-placeholder-size);
  /* 添加最小宽度 */
}

.sync-progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  /* min-width: 150px; */
}

.sync-progress-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  /* 修改为 visible，让色环可见 */
  background: var(--background-secondary);
}

/* 旋转的色环 */
.sync-progress-circle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent,
      transparent 45deg,
      var(--interactive-accent) 90deg,
      transparent 135deg,
      transparent 360deg);
  animation: spinBorder 2s linear infinite;
  z-index: 0;
}

/* 修改内圆遮罩样式 */
.sync-progress-circle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--background-secondary);
  z-index: 1;
  border: 1px solid var(--background-modifier-border);
  /* 添加边框 */
}

/* 进度填充 */
.sync-progress-circle-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  background: conic-gradient(var(--interactive-accent) var(--progress-degree, 0deg),
      var(--background-modifier-border) 0deg);
}

@keyframes spinBorder {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sync-progress-text {
  font-size: var(--sync-status-font-fize);
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 8px;
  margin-top: 4px;
}

.syc-vault.file-sync-status .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

.sync-vault.file-sync-status .sync-progress {
  font-size: var(--sync-status-font-fize);
  color: var(--text-normal);
}

.sync-vault.file-sync-status-placeholder {
  width: var(--sync-status-placeholder-size);
  height: var(--sync-status-placeholder-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sync-vault.file-browser {
  display: flex;
  padding-top: var(--file-nav-bar-height);
  flex-direction: column;
  height: 100%;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - var(--file-nav-bar-height));
  font-size: 18px;
  color: #666;
  z-index: 1000;
}

.file-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.0);

  @container (max-width: 300px) {
    .file-modified {
      display: none;
    }
  }

  @container (max-width: 200px) {
    .file-size {
      display: none;
    }
  }

  &:hover {
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    color: var(--nav-item-color-active);
    background-color: var(--nav-item-background-hover);
  }

  .file-name {
    flex: 1;
    display: block;
    cursor: pointer;
    min-width: 100px;
    font-size: var(--nav-item-size);
    font-weight: 400;
    color: var(--nav-item-color);
    margin: 0 8px;
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
  }

  .file-icon {
    color: var(--text-muted);
    margin-right: 8px;

    &:hover {
      color: var(--text-normal);
    }
  }

  .file-size,
  .file-modified,
  .file-synced {
    font-size: 0.85em;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
  }
}

@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}

.update-info {
  margin-bottom: 1em;
  font-weight: bold;
}

.update-description {
  margin-bottom: 1em;
  padding: 1em;
  background-color: var(--background-secondary);
  border-left: 4px solid var(--interactive-accent);
}

.notes {
  margin-top: 0.5em;
  line-height: 1.5;
  color: var(--text-normal);
}

.update-warning {
  margin-top: 1em;
  padding: 1em;
  background-color: var(--background-secondary);
  border-left: 4px solid var(--color-orange);
}

.warning-list {
  margin: 0;
  padding-left: 1.5em;
}

.warning-item {
  color: var(--text-muted);
}

.sync-status-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* sync status view */
.sync-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;

  &.rotating {
    animation: rotate 1.5s linear infinite;
  }

  &[data-icon="check-circle"] {
    color: var(--color-green);
  }

  &[data-icon="alert-circle"] {
    color: var(--color-red);
  }

  &[data-icon="cloud"] {
    color: var(--text-muted);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sync-control {
  display: flex;
  gap: 12px;
  /* 按钮之间的间距 */
  justify-content: center;
  /* 按钮左对齐 */
  align-items: center;
  /* 垂直居中 */
  margin-top: 16px;
  /* 与上方内容的间距 */
}

.sync-control-button,
.sync-report-button {
  padding: 8px 16px;
  /* 增加按钮的内边距 */
  font-size: 14px;
  /* 调整字体大小 */
  font-weight: 500;
  /* 字体加粗 */
  border: 1px solid var(--background-modifier-border);
  /* 添加边框 */
  border-radius: 6px;
  /* 圆角 */
  background-color: var(--background-primary);
  /* 按钮背景色 */
  color: var(--text-normal);
  /* 按钮文字颜色 */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  /* 添加过渡效果 */
}

.sync-control-button.start-sync {
  /* background-color: var(--interactive-accent); */
  color: green;
}

.sync-control-button.stop-sync {
  /* background-color: var(--text-error); */
  color: red;
}

.sync-control-button:hover,
.sync-report-button:hover {
  background-color: var(--background-modifier-hover);
  /* 悬停时背景色 */
  border-color: var(--interactive-accent);
  /* 悬停时边框颜色 */
  color: var(--interactive-accent);
  /* 悬停时文字颜色 */
}

.sync-control-button:disabled {
  background-color: var(--background-modifier-border);
  /* 禁用时背景色 */
  color: var(--text-muted);
  /* 禁用时文字颜色 */
  cursor: not-allowed;
  opacity: 0.7;
}

.sync-status {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.sync-status-menu {
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 8px;
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.sync-status-fullysynced {
  color: var(--text-success);
}

.sync-status-conflict {
  color: var(--text-warning);
}

.sync-status-syncing {
  color: var(--text-muted);
  animation: rotate 2s linear infinite;
}

.sync-status-syncerror {
  color: var(--text-error);
}

.sync-status-unknown {
  color: var(--text-muted);
}

.sync-progress {
  color: var(--text-muted);
}

.sync-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  gap: 1em;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--background-modifier-border);
  border-top: 3px solid var(--interactive-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.9em;
}

.plugin-list-container {
  /* max-height: 300px; */
  overflow-y: auto;
  padding-right: 8px;
  margin: 1em 0;
}

.plugin-list-container .setting-item {
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sync-status-separator {
  color: var(--text-muted);
  margin: 0 4px;
}

.sync-time,
.sync-next-time {
  color: var(--text-muted);
  font-size: 0.9em;
}

.sync-next-time {
  font-style: italic;
}

.status-online {
  color: var(--text-success);
}

.status-offline {
  color: var(--text-muted);
}

.cloud-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--background-primary);
}

.cloud-video-loading-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 1);
  z-index: 1000;
}

.cloud-video-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.cloud-video-loading-text {
  color: #ffffff;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.git-diff-block {
  font-family: monospace;
  border-radius: 3px;
}

/* labeled setting tab */
.cloud-settings-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

.cloud-settings-tab-bar {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--background-modifier-border);
  display: flex;
  flex-direction: row;
  gap: 5px;
  overflow-x: auto;
}

.cloud-settings-content-area {
  flex: 1;
  padding: 10px 20px;
  overflow-y: auto;
}

.cloud-settings-tab-button {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  margin: 0 2px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-muted);
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cloud-settings-tab-button:hover {
  background-color: var(--background-modifier-hover);
}

.cloud-settings-tab-button.active {
  background-color: var(--interactive-accent);
  color: var(--text-on-accent);
}

.cloud-settings-tab-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-settings-tab-content {
  display: none;
}

.cloud-settings-tab-content.active {
  display: block;
}

/* 诊断信息 */
.diag-report-modal {
  max-height: 70vh;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--background-primary);
  border-radius: 8px;
}

.diagnostic-section {
  margin-bottom: 20px;
}

.diagnostic-section h3 {
  margin-bottom: 10px;
  color: var(--text-accent);
}

.diagnostic-section table {
  width: 100%;
  border-collapse: collapse;
}

.diagnostic-section td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--background-modifier-border);
}

.diagnostic-key {
  color: var(--text-muted);
  width: 30%;
}

.diagnostic-value {
  font-family: var(--font-monospace);
}

.error-message {
  color: var(--text-error);
}

.error-details {
  margin: 4px 0;
  padding: 8px;
  background: var(--background-modifier-error);
  border-radius: 4px;
  font-size: 12px;
  white-space: pre-wrap;
}

.diagnostic-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* pdf viewer */
.toolbar-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* remote file explorer */
.cloud-explorer-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.cloud-explorer-main-content {
  height: 100vh;
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background-color: var(--background-secondary);
}

.sv-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  width: 100%;
}

.sv-toobar-icon {
  size: 18px;
}

.sv-search-bar {
  position: relative;
  width: 300px;
}

.sv-search-bar input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  outline: none;
}

.sv-search-bar input:focus {
  border-color: var(--primary-color);
}

.sv-search-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.sv-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.sv-toolbar-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  cursor: pointer;
}

.sv-toolbar-button:hover {
  background-color: #f8fafc;
}

.cloud-disk-file-browser {
  /* flex: 1; */
  /* height: 100%; */
  min-height: 100vh;
  overflow-y: auto;
  padding-right: 4px;
  background-color: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: 8px;
  padding: 1rem;
  overflow: auto;
}

.cloud-disk-breadcrumbs {
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--background-modifier-border);
}

.cloud-disk-breadcrumbs button {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  height: 28;
  vertical-align: middle;
}

.cloud-disk-breadcrumbs button:hover {
  text-decoration: underline;
}

.cloud-disk-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  min-height: min-content;
  padding-bottom: 4rem;
}

.cloud-disk-file-item {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  /* padding: 1rem; */
  /* border-radius: 0%; */
  /* border: 1px solid var(--background-modifier-border); */
  position: relative;
}

.cloud-disk-file-item:hover {
  background-color: var(--background-modifier-hover);
}

.cloud-disk-file-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.cloud-disk-file-icon {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
}

.cloud-disk-file-name {
  text-align: center;
  word-break: break-word;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0 0.25rem;
  color: var(--text-color);
}

.cloud-disk-file-actions {
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 1;
}

.cloud-disk-file-item:hover .cloud-disk-file-actions {
  opacity: 1;
  visibility: visible;
}

.cloud-disk-action-button {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 0;
  cursor: pointer;
  color: var(--interactive-accent);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.cloud-disk-action-button:hover {
  background-color: rgba(95, 99, 104, 0.1);
  color: #202124;
}

.cloud-disk-action-button:active {
  background-color: rgba(95, 99, 104, 0.2);
  transform: scale(0.95);
}

.cloud-disk-action-button .MuiSvgIcon-root {
  font-size: 20px;
}

video {
  max-width: 100%;
  max-height: auto;
  display: block;
}

.cloud-explorer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 320px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

canvas {
  cursor: text;
  user-select: none;
}

/* 速度测试模态 */
.cloud-speed-test-modal {
  padding: 20px;
}

.button-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.test-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.test-button:hover {
  opacity: 0.9;
}

.baidu-button {
  background-color: #2932e1;
  color: var(--text-on-accent);
  border: 1px solid var(--background-modifier-border)
}

.aliyun-button {
  background-color: #ff6a00;
  color: var(--text-on-accent);
  border: 1px solid var(--background-modifier-border)
}

.onedrive-button {
  background-color: #0078d7;
  color: var(--text-on-accent);
  border: 1px solid var(--background-modifier-border)
}

.all-button {
  background-color: var(--interactive-accent);
  color: var(--text-on-accent);
  border: 1px solid var(--background-modifier-border)
}

.results-container {
  margin-top: 20px;
}

.test-result {
  background: var(--background-secondary);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid var(--interactive-accent);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timestamp {
  font-size: 0.8em;
  color: var(--text-muted);
}

.speed-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 0.9em;
  color: var(--text-muted);
}

.value {
  font-weight: bold;
  font-size: 1.1em;
}

.test-error {
  background: var(--background-secondary);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid var(--text-error);
}

.error-header {
  color: var(--text-error);
  margin-bottom: 8px;
}

.status-text {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

/* webrtc connection status modal */
.webrtc-status-modal .status-display-container {
  padding: 10px 0;
}

.webrtc-status-modal .connection-panel {
  display: none;
  padding: 10px 0;
}

.webrtc-status-modal .no-connection-message {
  color: var(--text-muted);
  font-style: italic;
  padding: 20px;
  text-align: center;
}

.webrtc-status-modal .status-item {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.webrtc-status-modal .status-label {
  font-weight: bold;
  margin-right: 10px;
}

.webrtc-status-modal .status-value {
  color: var(--text-muted);
}

.webrtc-status-modal .stats-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--background-modifier-border);
}

.webrtc-status-modal h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-normal);
}

/* State specific colors */
.webrtc-status-modal .state-connected {
  color: var(--color-green);
}

.webrtc-status-modal .state-disconnected {
  color: var(--color-red);
}

.webrtc-status-modal .state-connecting {
  color: var(--color-orange);
}

.connection-panel {
  display: none;
}

.connection-panel.is-active {
  display: block;
}

.no-connection-message.is-hidden {
  display: none;
}

.data-channel-info {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 2px;
}

.state-open {
  color: var(--color-green);
}

.state-closed {
  color: var(--color-red);
}

.state-connecting {
  color: var(--color-yellow);
}

.status-readonly {
  background: var(--background-modifier-error);
  color: var(--text-error);
}

.setting-item .is-disabled {
  background-color: var(--background-modifier-border);
  /* 禁用时背景色 */
  color: var(--text-muted);
  /* 禁用时文字颜色 */
  cursor: not-allowed;
  opacity: 0.7;
}

.cloud-disk-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  /* 自动填充列，最小宽度160px */
  gap: 12px;
  /* 网格间距（行列间距一致） */
  margin: 16px 0 24px;
  padding: 8px;
}

.cloud-disk-option {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--background-modifier-border);
  border-radius: 8px;
  padding: 4px 8px;
  transition: all 0.2s ease;
  background: var(--background-primary);
  justify-content: center;
  /* 内容居中，网格内更整齐 */
}

.cloud-disk-option:hover:not(.selected) {
  border-color: var(--interactive-hover);
  background: var(--background-modifier-hover);
  transform: translateY(-1px);
}

.cloud-disk-option.selected {
  border-color: var(--interactive-accent);
  background: var(--interactive-accent-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cloud-disk-logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cloud-disk-name {
  font-size: 15px;
  color: var(--text-normal);
  white-space: nowrap;
}

.cloud-disk-option.selected .cloud-disk-name {
  color: var(--interactive-accent-foreground);
}

.cloud-disk-name-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cloud-disk-badge {
  position: absolute;
  /* 基于父容器定位 */
  top: 0px;
  /* 距离顶部的距离（可根据需要调整） */
  right: 0px;
  /* 距离右侧的距离（可根据需要调整） */
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  opacity: 0.9;
}

/* 推荐徽章专属样式 */
.cloud-disk-badge--recommended {
  background-color: rgba(232, 245, 233, 0.85);
  /* 浅绿色背景 + 85% 不透明度 */
  color: rgba(46, 125, 50, 0.9);
  /* 文字保留较高不透明度，确保清晰 */
  box-shadow: 0 1px 2px rgba(46, 125, 50, 0.15);
  /* 阴影也降低透明度 */
}

.cloud-disk-badge--experimental {
  background-color: rgba(255, 248, 230, 0.9);
  /* 浅橙色背景，传递“待验证”感 */
  color: rgba(230, 126, 34, 0.95);
  /* 深橙色文字，确保醒目 */
  box-shadow: 0 1px 2px rgba(230, 126, 34, 0.15);
  /* 同色系轻微阴影 */
  border: 1px solid rgba(230, 126, 34, 0.2);
}

.sync-vault-setting-header {
  display: flex;
  /* 启用弹性布局 */
  align-items: center;
  /* 垂直方向居中对齐 */
  gap: 8px;
  /* 文字与图标之间的间距，可根据需要调整 */
}

.deleted-file-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--background-modifier-border);
}

.sync-vault-cloud-status {
  position: absolute !important;
}

/* dashboard */
.dashboard-container {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dashboard-section {
  background: var(--background-secondary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--background-modifier-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.dashboard-section h3 {
  margin-top: 0;
  color: var(--text-accent);
  border-bottom: 1px solid var(--background-modifier-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--background-primary);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-label {
  font-size: 0.9em;
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  font-weight: 600;
  overflow: auto;
  color: var(--text-normal);
}

.progress-container {
  width: 100%;
  height: 8px;
  background: var(--background-modifier-border);
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-bar.safe {
  background: var(--color-green);
}

.progress-bar.warning {
  background: var(--color-orange);
}

.progress-bar.danger {
  background: var(--color-red);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-active {
  background: var(--color-green);
  color: white;
}

.status-inactive {
  background: var(--color-red);
  color: white;
}

.status-warning {
  background: var(--color-orange);
  color: white;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.action-button {
  width: 100%;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--background-modifier-hover);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sync-mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--background-modifier-hover);
  font-size: 0.9em;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}